package cn.hyy.hrm.impl;


import cn.hyy.basic.util.AjaxResult;
import cn.hyy.basic.util.PageList;
import cn.hyy.hrm.CourseESClient;
import cn.hyy.hrm.doc.CourseDoucment;
import cn.hyy.hrm.doc.query.CourseDocumentQuery;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class CourseESClientImpl implements CourseESClient {
    @Override
    public AjaxResult save(CourseDoucment courseDoucment) {
        return AjaxResult.me().setSuccess(false).setMessage("系统异常");
    }

    @Override
    public AjaxResult saveBathc(List<CourseDoucment> courseDoucments) {
        return AjaxResult.me().setSuccess(false).setMessage("系统异常");
    }

    @Override
    public AjaxResult delete(Long id) {
        return AjaxResult.me().setSuccess(false).setMessage("系统异常");
    }

    @Override
    public AjaxResult delete(List<Long> ids) {
        return AjaxResult.me().setSuccess(false).setMessage("系统异常");
    }

    /**
     *检索文档数据
     * @param query
     * @return
     */
    @Override
    public PageList<CourseDoucment> search(CourseDocumentQuery query) {
        return null;
    }
}
